package waysing.cream.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import waysing.cream.entity.MovieSource;

/**
 * Created by weixin on 2018/3/8.
 */
public interface MovieSourceDao extends JpaRepository<MovieSource,Integer> {

    @Query("from MovieSource ms where ms.doubanId=:doubanId")
    MovieSource findMovieSource(@Param("doubanId") String doubanId);
}
